luci-mod-status: fix ipv4 source
authorAndy Chiang <[email protected]>
Mon, 13 Oct 2025 19:02:11 +0000 (02:02 +0700)
committerPaul Donald <[email protected]>
Mon, 13 Oct 2025 22:03:45 +0000 (00:03 +0200)
ipv4 source in json is prefsrc not src

Signed-off-by: Andy Chiang <[email protected]>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/routesj.js

index 1f70caf4ad5d6f1fcdb94eabcc48058c5050da0b..001dd7acf39aa2cb4e42562fb7c2907cc1c18b6b 100644 (file)
@@ -150,7 +150,7 @@ return view.extend({
                                E('span', { 'class': 'ifacebadge' }, [ net ? net : '(%s)'.format(rt.dev) ]),
                                dest,
                                rt?.gateway || '-',
-                               rt?.src || rt?.from || '-',
+                               rt?.prefsrc || rt?.from || '-',
                                String(rt?.metric || '-'),
                                rt?.table || 'main',
                                rt?.protocol,